<%@ page import="sar.Staff" %>



<div class="fieldcontain ${hasErrors(bean: staffInstance, field: 'staffId', 'error')} required">
	<label for="staffId">
		<g:message code="staff.staffId.label" default="Staff Id" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="staffId" required="" value="${staffInstance?.staffId}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: staffInstance, field: 'professional', 'error')} ">
	<label for="professional">
		<g:message code="staff.professional.label" default="Professional" />
		
	</label>
	<g:textField name="professional" value="${staffInstance?.professional}"/>
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'username', 'error')} required">
	<label for="username"> <g:message code="user.username.label"
			default="Username" /> <span class="required-indicator">*</span>
	</label>
	<g:textField name="username" required=""
		value="${userInstance?.username}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'password', 'error')} required">
	<label for="password"> <g:message code="user.password.label"
			default="Password" /> <span class="required-indicator">*</span>
	</label>
	<g:textField name="password" required=""
		value="${userInstance?.password}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'fullname', 'error')} required">
	<label for="fullname"> <g:message code="user.fullname.label"
			default="Fullname" /> <span class="required-indicator">*</span>
	</label>
	<g:textField name="fullname" required=""
		value="${userInstance?.fullname}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'email', 'error')} ">
	<label for="email"> <g:message code="user.email.label"
			default="Email" />

	</label>
	<g:field type="email" name="email" value="${userInstance?.email}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'address', 'error')} required">
	<label for="address"> <g:message code="user.address.label"
			default="Address" /> <span class="required-indicator">*</span>
	</label>
	<g:textField name="address" required=""
		value="${userInstance?.address}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'accountExpired', 'error')} ">
	<label for="accountExpired"> <g:message
			code="user.accountExpired.label" default="Account Expired" />

	</label>
	<g:checkBox name="accountExpired"
		value="${userInstance?.accountExpired}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'accountLocked', 'error')} ">
	<label for="accountLocked"> <g:message
			code="user.accountLocked.label" default="Account Locked" />

	</label>
	<g:checkBox name="accountLocked" value="${userInstance?.accountLocked}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'enabled', 'error')} ">
	<label for="enabled"> <g:message code="user.enabled.label"
			default="Enabled" />

	</label>
	<g:checkBox name="enabled" value="${userInstance?.enabled}" />
</div>

<div
	class="fieldcontain ${hasErrors(bean: userInstance, field: 'passwordExpired', 'error')} ">
	<label for="passwordExpired"> <g:message
			code="user.passwordExpired.label" default="Password Expired" />

	</label>
	<g:checkBox name="passwordExpired"
		value="${userInstance?.passwordExpired}" />
</div>

